gtk: move _gtk_modules_has_mixed_deps() to gtkmodlesprivate.h
authorMichael Natterer <mitch@gimp.org>
Sun, 23 Oct 2011 11:57:07 +0000 (13:57 +0200)
committerMichael Natterer <mitch@gimp.org>
Sun, 23 Oct 2011 11:57:07 +0000 (13:57 +0200)
and remove gtkmainprivate.h completely.

25 files changed:
gtk/Makefile.am
gtk/gtkaboutdialog.c
gtk/gtkaccelgroup.c
gtk/gtkcombobox.c
gtk/gtkentrycompletion.c
gtk/gtkimmodule.c
gtk/gtklabel.c
gtk/gtklinkbutton.c
gtk/gtkmain.c
gtk/gtkmainprivate.h [deleted file]
gtk/gtkmenushell.c
gtk/gtkmodules.c
gtk/gtkmodulesprivate.h
gtk/gtkoverlay.c
gtk/gtkprintoperation.c
gtk/gtkrange.c
gtk/gtkscale.c
gtk/gtksocket.c
gtk/gtkspinbutton.c
gtk/gtktextattributes.c
gtk/gtktexttag.c
gtk/gtktoolbar.c
gtk/gtktoolitem.c
gtk/gtktreeview.c
gtk/gtkwidget.c

index 68df3c963332d040801db09a71f7d84f953353c0..906c158221aa0aadbfb8ec0d3c4a542ed4e34bf8 100644 (file)
@@ -416,7 +416,6 @@ gtk_private_h_sources =             \
        gtkimcontextsimpleseqs.h \
        gtkintl.h               \
        gtkkeyhash.h            \
-       gtkmainprivate.h        \
        gtkmenuprivate.h        \
        gtkmenuitemprivate.h    \
        gtkmenushellprivate.h   \
index 65ddfa08f1995651bf7892d9ea0653b12d809cde..aaa82fbb77069bd21a6ae41e3f22e05e1d7e2f8f 100644 (file)
@@ -49,7 +49,7 @@
 #include "gtktextview.h"
 #include "gtkiconfactory.h"
 #include "gtkshow.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
 #include "gtkmessagedialog.h"
 #include "gtktogglebutton.h"
 #include "gtktypebuiltins.h"
index 929cb038ee2ccffc36aec14849b596493914d09e..154ad295e11ce8b02554126fb9f2cd4d5de390f5 100644 (file)
@@ -33,7 +33,6 @@
 #include "gtkaccellabel.h"
 #include "gtkaccelmap.h"
 #include "gtkintl.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkprivate.h"
 
index c0bf2c8bf183143edd93265dc9a91f390fda3feb..a7948c9d968e8846c45f1d82332bc410ba3bdf79 100644 (file)
@@ -41,7 +41,6 @@
 #include "gtkseparator.h"
 #include "gtkwindow.h"
 #include "gtktypebuiltins.h"
-#include "gtkmainprivate.h"
 #include "gtkprivate.h"
 
 #include <gobject/gvaluecollector.h>
index d3d3a0405ef8576182236d10fb7dd6a86bda4512..4847b9d696a47b9f5ca5ddd8d02ef7068cdd5fd1 100644 (file)
@@ -82,7 +82,7 @@
 #include "gtkbox.h"
 #include "gtkwindow.h"
 #include "gtkentry.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
 #include "gtkmarshalers.h"
 
 #include "gtkprivate.h"
index 93ac7b9077ac1bbaa65cd9b20188938bc7f9ee3f..ef547fc5f959ee9db1881112b29e9c86dba829ac 100644 (file)
@@ -35,7 +35,6 @@
 #include "gtkimmodule.h"
 #include "gtkimcontextsimple.h"
 #include "gtksettings.h"
-#include "gtkmainprivate.h"
 #include "gtkprivate.h"
 #include "gtkintl.h"
 
index 7035da484fb3aee33a3051055974894218add429..26fb56af49a0d3786ab6654e626c7cedacd50769 100644 (file)
@@ -31,7 +31,6 @@
 #include "gtklabel.h"
 #include "gtkaccellabel.h"
 #include "gtkdnd.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkpango.h"
 #include "gtkwindow.h"
index ffa89c086fc0d5295c99f1aec2a23eb0a4c1bc8c..f0724275bb4df006b5841889e2a23afc395113ac 100644 (file)
@@ -55,7 +55,7 @@
 #include "gtkdnd.h"
 #include "gtkimagemenuitem.h"
 #include "gtklabel.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
 #include "gtkmenuitem.h"
index a4c38f62a4a6164fc25d88b793f0c07d46657ec5..25e61ebc47ba3c7b54db7089f65ff9f18f2f4adf 100644 (file)
@@ -91,9 +91,6 @@
 
 #include "config.h"
 
-#include "gtkmainprivate.h"
-
-#include <glib.h>
 #include "gdk/gdk.h"
 
 #include <locale.h>
 #include "gtkaccelmap.h"
 #include "gtkbox.h"
 #include "gtkclipboard.h"
+#include "gtkdebug.h"
 #include "gtkdnd.h"
-#include "gtkversion.h"
+#include "gtkmain.h"
+#include "gtkmenu.h"
 #include "gtkmodules.h"
 #include "gtkmodulesprivate.h"
+#include "gtkprivate.h"
 #include "gtkrecentmanager.h"
 #include "gtkselectionprivate.h"
 #include "gtksettingsprivate.h"
+#include "gtktooltip.h"
+#include "gtkversion.h"
 #include "gtkwidgetprivate.h"
 #include "gtkwindowprivate.h"
-#include "gtktooltip.h"
-#include "gtkdebug.h"
-#include "gtkmenu.h"
-#include "gtkprivate.h"
 
 
 /* Private type definitions
@@ -622,32 +620,6 @@ setlocale_initialization (void)
     }
 }
 
-/* Return TRUE if module_to_check causes version conflicts.
- * If module_to_check is NULL, check the main module.
- */
-gboolean
-_gtk_module_has_mixed_deps (GModule *module_to_check)
-{
-  GModule *module;
-  gpointer func;
-  gboolean result;
-
-  if (!module_to_check)
-    module = g_module_open (NULL, 0);
-  else
-    module = module_to_check;
-
-  if (g_module_symbol (module, "gtk_progress_get_type", &func))
-    result = TRUE;
-  else
-    result = FALSE;
-
-  if (!module_to_check)
-    g_module_close (module);
-
-  return result;
-}
-
 static void
 do_pre_parse_initialization (int    *argc,
                              char ***argv)
diff --git a/gtk/gtkmainprivate.h b/gtk/gtkmainprivate.h
deleted file mode 100644 (file)
index 2932ed2..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/* GTK - The GIMP Toolkit
- * Copyright (C) 2011 Red Hat, Inc.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
- *
- * This library is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this library; if not, write to the Free
- * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- */
-
-#ifndef __GTK_MAIN_PRIVATE_H__
-#define __GTK_MAIN_PRIVATE_H__
-
-#include "gtkmain.h"
-
-G_BEGIN_DECLS
-
-gboolean _gtk_module_has_mixed_deps (GModule *module);
-
-G_END_DECLS
-
-#endif  /* __GTK_MAIN_PRIVATE_H__ */
index 4b6749df966985f170f06a3d2d5258b606e6851e..7bda5355616619726f1e1ecc0b55fcfe198ed9d7 100644 (file)
@@ -42,7 +42,6 @@
 #include "gtkbindings.h"
 #include "gtkkeyhash.h"
 #include "gtklabel.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkmenubar.h"
 #include "gtkmenuitemprivate.h"
index cdd85db5e19f1a46e5200c7c43ef60a0799d7b0a..f94c0d198f27c540f5def5b616abd87647b3e237 100644 (file)
@@ -27,7 +27,7 @@
 #include "gtksettings.h"
 #include "gtkdebug.h"
 #include "gtkprivate.h"
-#include "gtkmainprivate.h"
+#include "gtkmodulesprivate.h"
 #include "gtkintl.h"
 
 #include <gmodule.h>
@@ -599,3 +599,29 @@ _gtk_modules_settings_changed (GtkSettings *settings,
                          new_modules,
                          settings_destroy_notify);
 }
+
+/* Return TRUE if module_to_check causes version conflicts.
+ * If module_to_check is NULL, check the main module.
+ */
+gboolean
+_gtk_module_has_mixed_deps (GModule *module_to_check)
+{
+  GModule *module;
+  gpointer func;
+  gboolean result;
+
+  if (!module_to_check)
+    module = g_module_open (NULL, 0);
+  else
+    module = module_to_check;
+
+  if (g_module_symbol (module, "gtk_progress_get_type", &func))
+    result = TRUE;
+  else
+    result = FALSE;
+
+  if (!module_to_check)
+    g_module_close (module);
+
+  return result;
+}
index 88f1c5e7cf89299d99ac9d32fc27da0f6eb7f07e..dc8ea28e6c13f4f0ed4adb551a2b06b94de01eeb 100644 (file)
@@ -39,6 +39,8 @@ void     _gtk_modules_init             (gint          *argc,
 void     _gtk_modules_settings_changed (GtkSettings   *settings,
                                         const gchar   *modules);
 
+gboolean _gtk_module_has_mixed_deps    (GModule       *module);
+
 G_END_DECLS
 
 #endif /* __GTK_MODULES_PRIVATE_H__ */
index 40125babaa4bdf0e83274dc9f8c6e9d746cba0f3..e8b66aab4ee048910c1a17b26795f3f8ff2b68c1 100644 (file)
@@ -25,7 +25,6 @@
 #include "gtkoverlay.h"
 #include "gtkbuildable.h"
 #include "gtkscrolledwindow.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 
 #include "gtkprivate.h"
index ebc7ad4565746c905bcd30947f38d16700469bec..b6fa95d4c610d4630ebb7a47f119f063b8100312 100644 (file)
@@ -31,7 +31,6 @@
 #include "gtkmarshalers.h"
 #include "gtkintl.h"
 #include "gtkprivate.h"
-#include "gtkmainprivate.h"
 #include "gtkmessagedialog.h"
 #include "gtktypebuiltins.h"
 
index 94594ddc9f22be189f87a91e688d0b19f84b7fed..69b959b7d34195d189c179b77a13de34dac640c2 100644 (file)
@@ -30,7 +30,6 @@
 #include <stdio.h>
 #include <math.h>
 
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkorientableprivate.h"
 #include "gtkrange.h"
index 69c54e40d0f3c7ea37dfb6c9592d112b76e3d1dc..3266f2eb0660706924d1c8d82a9f7f0158289970 100644 (file)
@@ -41,7 +41,6 @@
 #include "gtkintl.h"
 #include "gtkbuildable.h"
 #include "gtkbuilderprivate.h"
-#include "gtkmainprivate.h"
 
 #include "a11y/gtkscaleaccessible.h"
 
index d20a567ecede9941b73a727e25a7fd553c1326d7..d7f6df6937c0f64aed6f5cb6043ac5128fc2c788 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <string.h>
 
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtksizerequest.h"
 #include "gtkplug.h"
index 9a6b3eaeda9f094a0c5ee25762fad99380a8e707..6be36aac6b299b07c84f91c05f3bfc1a826b7f64 100644 (file)
@@ -38,7 +38,6 @@
 #include "gtkbindings.h"
 #include "gtkspinbutton.h"
 #include "gtkentryprivate.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtksettings.h"
 #include "gtkprivate.h"
index 8aca3b8c9f6f7036958b9c6474eeda0463323b99..d9bb88564424c1c1761b7edb161301999e9a5293 100644 (file)
@@ -51,7 +51,6 @@
 
 #include "gtktextattributes.h"
 
-#include "gtkmainprivate.h"
 #include "gtktexttag.h"
 #include "gtktexttypes.h"
 
index 827a2ddfedcbde5fd02b0d3be50b8cdfdee875d2..81f793267002c92d004de8659a53c780222976b5 100644 (file)
@@ -68,7 +68,6 @@
 #include <stdlib.h>
 #include <string.h>
 
-#include "gtkmainprivate.h"
 #include "gtktexttag.h"
 #include "gtktexttypes.h"
 #include "gtktexttagtable.h"
index 2bd9be7d5d7adca8e4c817b8486f61b9fa136804..5e7cfe1168e3f163fb49f8b7cc08e9095fe7a861 100644 (file)
@@ -42,7 +42,7 @@
 #include "gtkcontainerprivate.h"
 #include "gtkimage.h"
 #include "gtklabel.h"
-#include "gtkmainprivate.h"
+#include "gtkmain.h"
 #include "gtkmarshalers.h"
 #include "gtkmenu.h"
 #include "gtkorientable.h"
index 408494d3955f8b724be3e90dbccda3993b65de29..213fc820937f26c2f5fca52a8c193b67dff2ba82 100644 (file)
@@ -32,7 +32,6 @@
 #include "gtksizerequest.h"
 #include "gtkactivatable.h"
 #include "gtkintl.h"
-#include "gtkmainprivate.h"
 #include "gtkprivate.h"
 
 
index f7c54446828c8ce08dda0fdaaa94967ce366a6db..6ac647515ff4173279890a988fd9d7fefb129a3b 100644 (file)
@@ -28,7 +28,6 @@
 #include "gtktreednd.h"
 #include "gtktreeprivate.h"
 #include "gtkcellrenderer.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkbuildable.h"
 #include "gtkbutton.h"
index 3e9e1d5e762609d0ce514acd890576405b27f38c..8ebc2f5dc7d162276a70e2edb69dbc6efb0c0476 100644 (file)
@@ -39,7 +39,6 @@
 #include "gtkclipboard.h"
 #include "gtkiconfactory.h"
 #include "gtkintl.h"
-#include "gtkmainprivate.h"
 #include "gtkmarshalers.h"
 #include "gtkselectionprivate.h"
 #include "gtksettingsprivate.h"